//
//  NoteViewCell.m
//  Exam11-3
//
//  Created by 孙晓晔 on 2017/4/17.
//  Copyright © 2017年 孙晓晔. All rights reserved.
//

#import "NoteViewCell.h"

@interface NoteViewCell()
@property (weak, nonatomic) IBOutlet UILabel *content;
@property (weak, nonatomic) IBOutlet UILabel *createTime;

@end

@implementation NoteViewCell

-(void)setModel:(Note *)model {
    _model = model;
    
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
    [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
    
    self.content.text = model.content;
    self.createTime.text = [dateFormatter stringFromDate:model.createTime];
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
